#ifndef DIR_COMMANDS_H
#define DIR_COMMANDS_H

#include<mysql/mysql.h>
#include "pathstack.h" 
int handle_pwd(int client_fd,path_stack_t *s);
int handle_ls(MYSQL *mysql,path_stack_t *s,const char * user_root_path,char *result_buf,size_t size);
int handle_cd(MYSQL *mysql,path_stack_t *s, const char* user_root_path, const char* target_dir);
int build_real_path(path_stack_t *s,const char *user_root_path,char * real_path,size_t size);
//目录栈，用户的根目录，传出的真实目录
int get_path(path_stack_t *s, char *buf, size_t size);
//获取用户的虚拟路径

#endif // DIR_COMMANDS_H
